package Activity3;

public class Arrays {
    public static void main(String[] args) {
        int [][] arr = {{2,7,4},{6,0,98},{5,3,1}};

        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr.length; j++) {
                System.out.print(arr[i][j]+" ");
            }
            System.out.println("\n");
        }

        System.out.println("For loop:");
        for (int [] i:arr){
            for (int j:i){
                System.out.print(j+" ");
            }
            System.out.println("\n");
        }
    }
}
